package com.onstar.cn.vehicle.entity;

import com.onstar.cn.common.util.DeviceUtil;

public class MetaData {
	protected String locale;
	protected UnitOfMeasureType uomSystem;

	public String getLocale() {
		return locale;
	}

	public void setLocale(String locale) {
		this.locale = locale;
	}

	public UnitOfMeasureType getUomSystem() {
		return uomSystem;
	}

	public void setUomSystem(UnitOfMeasureType uomSystem) {
		this.uomSystem = uomSystem;
	}

	public static MetaData getMetaData() {
		MetaData metaData = new MetaData();
		if (DeviceUtil.getLanguage().equals("zh")) {
			metaData.setLocale("zh-CN");
		} else {
			metaData.setLocale("en-US");
		}
		metaData.setUomSystem(UnitOfMeasureType.METRIC);
		return metaData;
	}

}
